home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19971216-19980424 / 000097_news@newsmaster….columbia.edu _Thu Jan 15 19:25:44 1998.msg < prev    next >
Internet Message Format  |  1998-04-22  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA00776
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 15 Jan 1998 19:25:44 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id TAA01125
  7.     for kermit.misc@watsun; Thu, 15 Jan 1998 19:25:43 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: escape to command mode
  12. Date: 16 Jan 1998 00:25:40 GMT
  13. Organization: Columbia University
  14. Lines: 79
  15. Message-ID: <69m9e4$k7a$1@apakabar.cc.columbia.edu>
  16. References: <884711083.816316424@dejanews.com> <69iivv$hsn$1@apakabar.cc.columbia.edu> <884830413.2043019283@dejanews.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8270
  19.  
  20. In article <884830413.2043019283@dejanews.com>,  <david2020@hotmail.com> wrote:
  21. : In article <69iivv$hsn$1@apakabar.cc.columbia.edu>,
  22. :   fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote:
  23. : > In article <884711083.816316424@dejanews.com>,<david2020@hotmail.com> wrt:
  24. : > : I'm writing a C-kermit script to run test calls (login, password, etc.)
  25. : > :
  26. : > : I want to escape to the modem's command mode by using +++ to get some
  27. : > : modem statistics (e.g. ATI6) while the connection is still up.
  28. : > :
  29. : > : Any thoughts on how I would accomplish this using C-Kermit?
  30. : > :
  31. : > : By the way,  I tried OUTPUT +++\13,  did not work.
  32. : > :
  33. : > : or  OUTPUT \L
  34. : > :     OUTPUT +++\13
  35. : > :     OUTPUT \L;   did not work either.
  36. : > :
  37. : > The modem's escape sequence probably requires a 1-second pause before and
  38. : > after; this is the famous Hayes-patented "guard time".  So:
  39. : >
  40. : >   pause 1
  41. : >   output +++
  42. : >   pause 1
  43. :
  44. : I tried doing that...
  45. >
  46. Did you leave the "\13" off the "OUTPUT +++" command?
  47.  
  48. : ... and it seems that the modem is still not recognizing
  49. : the sequence.  I even initialized the modem to have no guard time
  50. : (ats12=0) and still it didn't recognize the escape char.
  51. : I also tried changing the output pacing, but still the same.. no luck.
  52. : There are no problems if I do it manually.
  53. The idea of scripting is to make it do whatever you do manually.  How long
  54. do you wait before typing +++?  How long does it take before the OK message
  55. appears?
  56.  
  57. In any case, we could spend all year trying to second-guess your modem.
  58. Either there is a guard time or there isn't.  If there is, then whatever it
  59. is, you have to wait that amount of time before and after.  Be consertive:
  60.  
  61.   msleep 1500
  62.   output +++    ; <-- NOTE: no \13 here
  63.   msleep 1500
  64.  
  65. Give it another half-second on each side.
  66.  
  67. It is possible to change the escape character to something other than "+",
  68. but I doubt this applies here since you say it works by hand.
  69.  
  70. If there is no guard time, then let us hope the modem has some way to
  71. distinguish your "escaping-back +++" from a "+++" sequence that happens to
  72. appear in the data (such as this text; are you still with me? :-)  The
  73. common schemes are:
  74.  
  75.  . Use BREAK or Long BREAK for getting back to the command processor.
  76.  
  77.  . The modem uses "TIES" "technology" (= Time Independent Escape Sequence);
  78.    a dangerous scheme used by some modem companies to avoid having to pay
  79.    Hayes to let them use their patented guard time idea.
  80.  
  81. In any case, if you can do it by hand, you can script it.  Really.  Just
  82. make the script do exactly what your hands and eyes did.
  83.  
  84. By the way, note that the +++ is transmitted by the modem to the other side,
  85. so it is sent to the system (terminal server, whatever) that answered the
  86. phone, and is most likely echoed back to the remote modem, which better be
  87. configured to ignore it, or it too will pop back into command mode and then
  88. your connection will be unusable from that point on.
  89.  
  90. Personally, I always though the transition between online and command modes
  91. should be controllable by a wire (after all, we're only using 8 or 10 out of
  92. 25 of the circuits defined in RS-232 for asynchronous modems), but I guess
  93. it's about 30 years too late for that idea to catch on...
  94.  
  95. - Frank